<!DOCTYPE html>
<html>

<head>
    <meta name="layout" content="main2"/>
    <title>个人统计</title>
</head>

<body>
<div class="main-body">
    <div class="page-wrapper">
        <!-- Page-header start -->
        <div class="page-header">
            <div class="page-header-title">
                <h4>财务统计</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>

                    <li class="breadcrumb-item">财务统计</li>
                </ul>
            </div>
        </div>
        <!-- Page-header end -->
        <!-- Page-body start -->
        <div class="page-body">
            <g:if test="${flash.message}">
                <div class="message alert alert-info" role="status">${flash.message}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span></button>
                </div>
            </g:if>

        <!-- Hover table card start -->
        <div class="card">
            <div class="card-header">
                <h5>搜索</h5>

                <div class="card-header-right">

                    <i class="icofont icofont-rounded-down"></i>
                </div>
            </div>
            <div class="card-block dt-responsive">

                <div class="table-responsive">
                    <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">
                      <g:form method="POST" action="cashierDashboard">
                          <div class="row m-0">
                              <div class="col-md-8 p-l-0">
                                  <div id="order-table_filter" class="dataTables_filter text-left">
                                      <label>搜索<input type="text" class="form-control" placeholder="编号"
                                                      name="code"
                                                      id="code"
                                                      value="${params?.code}">

                                                <input type="text" class="form-control" placeholder="客户名称"
                                                                name="accountName"
                                                                id="accountName"
                                                                value="${params?.accountName}">
                                      </label>
                                  </div>
                              </div>
                              <div class="col-md-4 p-r-0 dt-buttons text-right">
                                  <button class="btn btn-success btn-mini" type="submit"><i
                                          class="icofont icofont-search"></i>搜索
                                  </button>
                                  <button class="btn btn-warning btn-mini" type="button"
                                          id="resetBtn"><i
                                          class="icofont icofont-close"></i>重置</button>


                              </div>
                          </div>
                      </g:form>

                    </div>
                </div>

            </div>
        </div>


            <!-- Hover table card end -->
            <div class="card">
                <div class="card-header">
                    <h5>客户</h5>

                    <div class="card-header-right">

                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <div class="card-block dt-responsive">

                    <div class="table-responsive">
                        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

                            <table class="table table-striped  table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <g:sortableColumn property="id" title="编号" />
                                        <g:sortableColumn property="name" title="名称" />
                                    </tr>
                                </thead>
                                <tbody>
                                    <g:each in="${accountList}">
                                        <tr>
                                            <td>
                                                ${it?.id}
                                            </td>
                                            <td>${it?.name}</td>

                                        </tr>
                                    </g:each>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
            <div class="card">
                <div class="card-header">
                    <h5>商机</h5>

                    <div class="card-header-right">

                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <div class="card-block dt-responsive">

                    <div class="table-responsive">
                        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

                            <table class="table table-striped  table-bordered table-hover">
                                <thead>
                                <tr>
                                    <g:sortableColumn property="id" title="编号"></g:sortableColumn>
                                    <g:sortableColumn property="serialNumber" title="商机号"></g:sortableColumn>
                                    <g:sortableColumn property="account" title="客户名称"></g:sortableColumn>

                                </tr>
                                </thead>
                                <tbody>
                                <g:each in="${opportunityList}">
                                    <tr>
                                        <td>
                                            ${it?.id}
                                        </td>
                                        <td>${it?.serialNumber}</td>
                                        <td>${it?.account}</td>

                                    </tr>
                                </g:each>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
            <div class="card">
                <div class="card-header">
                    <h5>线索</h5>

                    <div class="card-header-right">

                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <div class="card-block dt-responsive">

                    <div class="table-responsive">
                        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

                            <table id="dom-jqry" class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <g:sortableColumn property="id" title="${message(code: 'lead.company.label', default: '编号')}"></g:sortableColumn>
                                            <g:sortableColumn property="fullName" title="${message(code: 'lead.fullName.label', default: '名称')}"></g:sortableColumn>
                                            <g:sortableColumn property="account" title="${message(code: 'lead.account.label', default: '客户名称')}"></g:sortableColumn>

                                        </tr>
                                    </thead>
                                    <tbody>
                                        <g:each in="${leadList}">
                                        <tr>
                                            <td>
                                                ${it?.id}
                                            </td>
                                            <td>${it?.fullName}</td>
                                            <td>${it?.account}</td>

                                        </tr>
                                        </g:each>
                                    </tbody>
                                </table>
                        </div>
                    </div>

                </div>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>日历</h5>

                    <div class="card-header-right">

                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <div class="card-block dt-responsive">

                    <div class="table-responsive">
                        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

                            <table class="table table-striped  table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <g:sortableColumn property="id" title="编号" />
                                        <g:sortableColumn property="name" title="标题" />
                                        <g:sortableColumn property="account" title="客户名称" />

                                    </tr>
                                </thead>
                                <tbody>
                                    <g:each in="${activityList}">
                                        <tr>
                                            <td>
                                                ${it?.id}
                                            </td>
                                            <td>${it?.name}</td>
                                            <td>${it?.account}</td>

                                        </tr>
                                    </g:each>
                                <!-- </tbody> -->
                            </table>
                        </div>
                    </div>

                </div>
            </div>




          <!-- Page-body end -->

        </div>
</div>
<g:javascript>

    $(function () {
    $("#resetBtn").click(function () {

        $("#code").val("");
        $("#accountName").val("");

    })
});

</g:javascript>

</body>

</html>
